import ProxyInterface from '../proxy-interface';
import {FilePathModel} from '@pkpm/pkpm-types';

class FilePathProxy implements ProxyInterface<FilePathModel> {
    private filePath = new FilePathModel();

    constructor(responseData) {
        let data = responseData.data || responseData;
        Object.assign<FilePathModel, any>(this.filePath, data);
    }

    getModel(): FilePathModel {
        return this.filePath;
    }
}

export {FilePathProxy};
